<template>
  <div class="top">
    <a href="http://www.luoguang.icu"><h1>落光</h1></a>
    <div class="nav">
      <router-link to="Home"><div class="navItem">首页</div></router-link>
      <router-link to="MyProjects"
        ><div class="navItem">我的作品</div></router-link
      >
      <router-link to="ContactMe"
        ><div class="navItem">联系&合作</div></router-link
      >
      <div class="gotoMyNotes">
        <a href="http://note.luoguang.icu/" target="_blank"
          >学习文档</a
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Top",
  data() {
    return {};
  },
  props: ["isSwitch"],
  methods: {}
};
</script>

<style scoped lang="less">
// pc端样式
@media screen and (min-width: 1200px) {
  /* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
  @font-face {
    font-family: "阿里妈妈方圆体 VF Regular";
    src: url("//at.alicdn.com/wf/webfont/ZAoKVIQgQ5l3/iddVb3cCzraZ.woff2")
        format("woff2"),
      url("//at.alicdn.com/wf/webfont/ZAoKVIQgQ5l3/kTowRCWd3AdI.woff")
        format("woff");
    font-display: swap;
  }

  .gotoMyNotes {
    height: 40px;
    width: 80px;
    background-color: #3eaf7c;
    line-height: 40px;
    border-radius: 5px;
    color: white;
    transition: all 0.3s;
    // font-family: "阿里妈妈方圆体 VF Regular";
    font-family: "宋体";
  }

  .gotoMyNotes:hover {
    scale: 1.1;
  }

  .gotoMyNotes a {
    color: white;
    // font-family: "阿里妈妈方圆体 VF Regular";
  }

  .top {
    margin-bottom: 20px;
    height: 70px;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    line-height: 80px;
    border-bottom: 1px #f2b98f solid;
    // align-items: center;
  }

  .top h1 {
    margin-left: 20px;
    display: block;
    /* -webkit-user-drag: none; */
    // text-shadow: 2px 2px 5px gray;
    user-select: none;
    font-family: "阿里妈妈方圆体 VF Regular";
  }

  .top .nav {
    height: 80px;
    /* background-color: pink; */
    display: flex;
    justify-content: space-around;
    line-height: 80px;
    margin-right: 10px;
    align-items: center;
  }
  .top .nav .navItem {
    margin: 0 20px;
    font-size: large;
    font-family: "宋体";
  }
  .top .nav .navItem:hover {
    text-shadow: 2px 2px 5px gray;
    // font-size: larger;

    border-bottom: 2px solid gray;
  }
}

// 手机端
@media screen and(max-width:1199px) {
  .gotoMyNotes {
    display: none;
  }
  .top {
    margin-bottom: 10px;
    height: 40px;
    background-color: #fff;
    display: flex;
    justify-content: space-evenly;
    line-height: 40px;
    border-bottom: 1px gray solid;
    width: 100%;
  }

  .top h1 {
    width: 80px;
    font-size: 20px;
    text-shadow: 2px 2px 5px gray;
    margin-right: 20px;
    margin-left: 10px;
  }

  .top .nav {
    width: 100%;
    height: 40px;
    /* background-color: pink; */
    display: flex;
    justify-content: space-around;
    line-height: 40px;
  }
  .top .nav .navItem {
    margin: 0 2px;
    // width: 50px;
    font-size: 16px;
    font-weight: 400;
  }

  .myNotes {
    display: none;
  }

  .top .nav .navItem:active {
    text-shadow: 2px 2px 5px gray;
    font-size: 20px;
    transition: 0.3s all;
  }
}
</style>
